package constants;

/** The Enum with all the bonus types.
 * @author Team 1
 *
 */
public enum BonusType {
	POINTS_BOOSTER, DOUBLE_BALL, SHOOTER;
	
	public static BonusType intToBonusType(int value) {
		switch(value) {
		case 0:
			return BonusType.POINTS_BOOSTER;
		case 1:
			return BonusType.DOUBLE_BALL;
		default:
			return BonusType.SHOOTER;
		}
	}
	
	public Integer bonusTypeToInteger() {
		switch(this) {
		case POINTS_BOOSTER:
			return 0;
		case DOUBLE_BALL:
			return 1;
		default:
			return 2;
		}
	}
}